package com.zhuiyun.project.api.userrecord.service;

import com.zhuiyun.project.api.userrecord.model.AddCaseRecordsModel;
import com.zhuiyun.project.api.userrecord.model.UploadUserRecordModel;
import com.zhuiyun.project.common.errorCode.CommonException;
import com.zhuiyun.project.common.response.CommonResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * @InterfaceName UserRecordService
 * @Description TODO
 * @Author wuwan
 * @Date 2023/11/20 14:51
 **/
public interface UserRecordService {
    /*
     * @Author wuwan
     * @Description 上传学员课程记录
     * @Date 2023/11/20 15:08
     * @Return
     */
    CommonResult uploadUserRecord(UploadUserRecordModel uploadUserRecordModel) throws CommonException;

    String  uploadImg(MultipartFile file);

    CommonResult selectUserInformation(Integer recordId);

    CommonResult addCaseRecords(AddCaseRecordsModel addCaseRecordsModel);

    String uploadStartPhoto(MultipartFile file);

    String uploadEndingPhoto(MultipartFile file);

    CommonResult selectUserCase(Integer tid, Integer caseStatus);

    /**
     * @Author wx
     * @Description 根据学员编号 教练编号查询案例
     * @Date 2023/12/4 13:53
     * @Return
     * @param coachId,memberId
     */
    CommonResult selectTeacherCase(Integer coachId);

    /**
     * @Author wx
     * @Description 修改案例评分
     * @Date 2023/12/12 14:48
     * @Return
     * @param fraction
     */
    CommonResult updateCsaeFroction(String fraction, Integer coachId, Integer memberUserId);
}
